package com.zryc.shop.sms.service.impl;

import com.zryc.shop.sms.entity.FlashPromotionProductRelation;
import com.zryc.shop.sms.mapper.FlashPromotionProductRelationMapper;
import com.zryc.shop.sms.service.IFlashPromotionProductRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品限时购与商品关系表 服务实现类
 * </p>
 *
 * @author LiYe
 * @since 2023-02-13
 */
@Service
public class FlashPromotionProductRelationServiceImpl extends ServiceImpl<FlashPromotionProductRelationMapper, FlashPromotionProductRelation> implements IFlashPromotionProductRelationService {

    @Override
    public List<FlashPromotionProductRelation> listByFlashPromotion(Long flashPromotionId) {
        return baseMapper.selectListByFlashPromotionId(flashPromotionId);
    }
}
